package com.jmp.api.admin.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.math.BigDecimal;

/**
 * @author cjr
 */
@Data
@Builder
public class TicketOrderCompanyResponse {

    private Count count;
    private PageResponse2<Company> companies;

    @Data
    @Builder
    public static class Count {
        private Integer orderNum;
        private Integer orderLeftMoney;
        private Integer orderMoney;
        private Integer orderNumAudit;
        private Integer ticketNum;
        private Integer ticketCheckNum;
    }

    @Data
    @Builder
    public static class Company {
        @ExcelProperty("编号")
        private Integer companyId;
        @ExcelProperty("花园商家名称")
        private String companyName;
        @ExcelProperty("非入驻商家:0不是 1是")
        private Integer type;
        @ExcelProperty("门牌号")
        private String addr;
        @ExcelProperty("总订单")
        private Integer orderNum;
        @ExcelProperty("核销订单")
        private Integer orderUseNum;
        @ExcelProperty("失败订单")
        private Integer orderFailNum;
        @ExcelProperty("销售额")
        private BigDecimal orderMoney;
        @ExcelProperty("管理员")
        private String companyUser;
        @ExcelProperty("联系电话")
        private String companyTel;
    }
}
